package com.xuan.friend.domain.user;

import com.baomidou.mybatisplus.annotation.*;
import com.xuan.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 用户-竞赛 关系表
 * @TableName tb_user_contest
 */

@TableName(value ="tb_user_contest")
@Setter
@Getter
public class UserContest extends BaseEntity implements Serializable {
    /**
     * 用户-竞赛id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long userContestId;

    /**
     * 竞赛id
     */
    private Long contestId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 分数
     */
    private Integer score;

    /**
     * 排名
     */
    private Integer contestRank;

    /**
     * 是否删除 0:未删除  1:已删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}